#pragma once
#ifndef META_UTILS_H
#define META_UTILS_H

#include "gst/gstbuffer.h"
#include "nvdsmeta.h"
#include "nvdsinfer.h"
void print_buffer_meta(GstBuffer *buffer);

const char *get_buffer_class(GstBuffer *buffer);

const NvDsLabelInfo *get_buffer_label(GstBuffer *buffer);

typedef struct _TensorView {
    const NvDsInferDims *dims;
    const void *data;
} TensorView;

TensorView get_buffer_tensor(GstBuffer *buffer);

#endif